/**
 * @(#)RetentFilterDaoImpl.java 2017年7月3日
 * Copyright(C) 2017 ZHEXIN IT CO.,LTD. All rights reserved.
 */
package org.jsbd.boss.dao.impl;

import java.util.List;

import org.jsbd.boss.dao.IRetentFilterConfigDao;
import org.jsbd.boss.domian.channel.RetentFilterConfig;
import org.springframework.stereotype.Service;

/**
 * 过滤规则记录
 * 
 * @author <a href="mailto:xupengcheng@zhexinit.com" >徐鹏程</a>
 * @version 1.0.0
 */

@Service
public class RetentFilterConfigDaoImpl extends CrackBaseDao implements IRetentFilterConfigDao {

	/*
	 * (non-Javadoc)
	 * 
	 * @see
	 * org.jsbd.boss.dao.IRetentFilterConfigDao#selectRetentFilterConfigList
	 * (org.jsbd.boss.domian.channel.RetentFilterConfig)
	 */
	@Override
	public List<RetentFilterConfig> selectRetentFilterConfigList(RetentFilterConfig filter) {
		return super.queryForList("qy_retent_filter_config.SELECT_RETENT_FILTER_CONFIG", filter);
	}
	
	
	@Override
	public void batchInsertRetentFilterConfig(List<RetentFilterConfig> list){
		super.batchInsert("qy_retent_filter_config.INSERT_RETENT_FILTER_CONFIG", list);
	}

	/*
	 * (non-Javadoc)
	 * 
	 * @see
	 * org.jsbd.boss.dao.IRetentFilterConfigDao#insertRetentFilterConfig(org
	 * .jsbd.boss.domian.channel.RetentFilterConfig)
	 */
	@Override
	public void insertRetentFilterConfig(RetentFilterConfig filter) {
		super.insert("qy_retent_filter_config.INSERT_RETENT_FILTER_CONFIG", filter);
	}

	/*
	 * (non-Javadoc)
	 * 
	 * @see
	 * org.jsbd.boss.dao.IRetentFilterConfigDao#deleteRetentFilterConfig(org
	 * .jsbd.boss.domian.channel.RetentFilterConfig)
	 */
	@Override
	public int deleteRetentFilterConfig(RetentFilterConfig filter) {
		return super.delete("qy_retent_filter_config.DELETE_RETENT_FILTER_CONFIG", filter);
	}

}
